﻿using SqlSugar;
using System.Data;

namespace Koala.Pro.CodeGenerator.UI.Common
{
    public class CodeGenerationSettingDbContext
    {
        public static SqlSugarClient GetDbClient()
        {
            var connectionString = "Data Source=CodeGenerationSetting.db;";
            SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
            {
                ConnectionString = connectionString,
                DbType = SqlSugar.DbType.Sqlite,
                IsAutoCloseConnection = true
            });
            return db;
        } 
    }
}
